//
//  FlyweightTicketProtocol.swift
//  ArchitectGenerics
//
//  Created by 姚胜龙 on 2017/6/20.
//  Copyright © 2017年 姚胜龙. All rights reserved.
//

import UIKit

//享元模式接口
protocol FlyweightTicketProtocol {
    var from:String {get}
    var to:String {get}
    var bunk:String {get}
    var price:Int {get}
    //bunk:座次（硬座，硬卧，无座，软卧...）
    func showTicketInfo(bunk:String)
}
